<{include file="public/header.html"}>
		<div class="xinsu-right">
			<div class="xinsu-right-content">
				<div class="xinsu-data-content">
					<div class="xinsu-title">
						<span class="layui-breadcrumb">
							<a><cite>当前位置</cite></a>
							<a><cite>新闻公告管理</cite></a>
						</span>
					</div>
					<div class="xinsu-add">
						<a href="javascript:;"><i class="layui-icon">&#xe61f;</i>新增新闻公告</a>
					</div>
					<form class="layui-form xinsu-form" action="" method="get">
						<div class="layui-form-item">
						<div class="layui-inline">
								<label class="layui-form-label xinsu-form-label">类别</label>
								<div class="layui-input-inline xinsu-input-inline">
									<select name="type">
									<option value="0" <{if $type == 0}>selected="selected"<{/if}>>所有</option>
									<option value="1" <{if $type == 1}>selected="selected"<{/if}>>公告</option>
									<option value="2" <{if $type == 2}>selected="selected"<{/if}>>新闻</option>
									</select>
								</div>
							</div>
							<div class="layui-inline">
								<label class="layui-form-label xinsu-form-label">标题</label>
								<div class="layui-input-inline xinsu-input-inline">
									<input type="text" name="title" class="layui-input" value="<{if $title!=0}><{urldecode($title)}><{/if}>" />
								</div>
							</div>

							<button class="layui-btn xinsu-btn">查询</button>
							<span>记录总数：共 <{$total}> 条</span>
						</div>
					</form>
					<div class="layui-form xinsu-form">
						<table class="layui-table">
							<thead>
								<tr>
									<th>ID</th>
									<th>类型</th>
									<th>标题</th>
									<th>发布人</th>
									<th>时间</th>
									<th>状态</th>
									<th>操作</th>
								</tr> 
							</thead>
							<tbody>
								<{if empty($list) == false}>
								<{foreach $list as $val}>
								<tr>
									<td><{$val.id}></td>
									<td><{if $val.type == 1 }>公告<{else}>新闻<{/if}></td>
									<td><{$val.title}></td>
									<td><{$val.author}></td>
									<td><{date("Y-m-d",$val["add_time"])}></td>
									<td><{if $val.status == 0}><font color="red">无效</font><{else}>有效<{/if}></td>
									<td>
										<a class="xinsu-fontcolor-blue xinsu-amend xinsu-edit" href="javascript:;" data="<{$val.id}>">修改</a>
										<a class="xinsu-fontcolor-blue xinsu-delete" href="javascript:;" data="<{$val.id}>">删除</a>
									</td>
								</tr>
								<{/foreach}>
								<{else}>
								<tr>
									<td colspan="7">暂无数据</td>
								</tr>
								<{/if}>
							</tbody>
						</table>
					</div>
					<div class="xinsu-page">
						<div class="xinsu-show">
							<{$page}>
						</div>
						<div class="xinsu-clear"></div>
					</div>
				</div>
			</div>
		</div>
<{include file="public/footer.html"}>